import { IsNotExistsRule } from '@/common/rules/is-not-exists.rule'
import { IsNotEmpty } from 'class-validator'

export class DictDto {
  @IsNotEmpty({ message: '名称不能为空' })
  dict_name: string

  @IsNotEmpty({ message: '标识不能为空' })
  @IsNotExistsRule('Dict', { message: '标识已存在' })
  dict_mark: string
}
